Truth tables
def andor2(val1, val2):
result = val1 or val2
return result
Function Call | Return Value | |||
---|---|---|---|---|
andor2(True, True) | → | |||
andor2(True, False) | → | |||
andor2(False, True) | → | |||
andor2(False, False) | → |
Experiment with this code on Gitpod.io